home *** CD-ROM | disk | FTP | other *** search
/ The Business Master (3rd Edition) / The Business Master (3rd Edition).iso / files / utilstem / util3 / util3.arc / SAY.DOC < prev    next >
Encoding:
Text File  |  1988-10-27  |  1.7 KB  |  43 lines

  1.                                     SAY.COM
  2.  
  3.          PC-MAGAZINE             PAUL SOMERSON        VOL 5 NUMBER 20
  4.  
  5.                      SYNTAX: SAY "string" or decimal ASCII 
  6.  
  7.  
  8.          OPERATION:   SAY.COM  will print any test characters from the 
  9.          command  line  that  you  enclose  inside  double   quotation 
  10.          marks (").   If you want to echo the quote mark itself, use a 
  11.          pair of quotes.  If the quotation mark is the first character 
  12.          to be echoed, triple the quotation marks.
  13.  
  14.          SAY  will handle non-printable characters if you type them in 
  15.          their  decimal ASCII code value on the command  line  without 
  16.          embedding  them  between quotes (a carriage return/line  feed 
  17.          would  be 13 10).   If you want to print the  redirection  or 
  18.          piping characters(<, >, and |) you'll have to use their ASCII 
  19.          values (60,  62,  and 124), since DOS will try to redirect or 
  20.          pipe  your  command  when  it sees the actual  symbols  on  a 
  21.          command line.
  22.  
  23.          EXAMPLE:   SAY """Compaq? "" he asks." 13 10
  24.                     "She answers ""Kaypro."""
  25.          will yield
  26.                     "Compaq?" he asks.
  27.                     She answers "Kaypro."
  28.  
  29.          EXAMPLE:   SAY 27 "&16D" > PRN
  30.  
  31.          sends  and ESCape sequence code to your printer and lets  you 
  32.          see  the actual characters that you're sending.   
  33.  
  34.          EXAMPLE:   If you are using ANSI.SYS,
  35.  
  36.          SAY 27 "[0;68;""CLS"";13;""DIR /P"";13P"
  37.  
  38.          redefines F10 to do a clear screen and a DIR/P
  39.  
  40.          EXAMPLE:   SAY 13 "DISK1" 13 "N" 13 | FORMAT B: /s /v
  41.  
  42.          lets you format a floppy disk without any user intervention.
  43.